require 'Math'

x = 4.0
y = Math.sqrt(x)
puts y   # 输出2.0